home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!xs4all!usenet
- From: martijnl@xs4all.nl (Martijn Lievaart)
- Newsgroups: comp.lang.c++
- Subject: Re: Borland C++ linker error
- Date: 2 Jan 1996 15:57:10 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4cbkkm$dra@news.xs4all.nl>
- References: <4c1ek2$24d@ixnews7.ix.netcom.com>
- NNTP-Posting-Host: mas01-15.dial.xs4all.nl
- X-Newsreader: WinVN 0.99.6
-
- In article <4c1ek2$24d@ixnews7.ix.netcom.com>, endorfin@ix.netcom.com says...
- >
- >
- >Whenever I link programs with TLINK I get an error message saying
- >Segment _TEXT exceeds 64K.
- >
- >How do I get rid of this error?
- >
- >Thanx in advance
-
- Use large or compact model. _TEXT is your 'default data segment' and it's not
- that big (64K max. but the stack, and some other things are in there too).
- Using these models moves your data to seperate segments, giving you much more
- memory. (actually it's a little more complicated but this is the gist of it).
-
- Or you could make that one big array far, i.e.
-
- BigStructType LargeArray[1000];
-
- If some of you're data (arrays) are bigger than 64K things get even more
- complicated and you could switch to huge model.
-
- Best of all, get a DOS-extender or start using unix, than you'll never have to
- worry about these horrors (but may get others, though lesser, in return).
-
- Hope this helps
-
-